package Team.Yaohuo.config;


import org.springframework.amqp.core.Queue;
import org.springframework.amqp.core.QueueBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RabbitConfig {

    /**
     * 创建一个消息队列
     * @return
     */
    @Bean
    public Queue messageQueue() {
        return new Queue("messageQueue", true);
    }


}
